"""
@name : 面试题二 -- 统计不重复单词的数量
@author : liuyi
@projectname: Demo01
@time : 2022/3/6  9:12
"""

#统计字符串中不重复单词的数量
str_english = "hi,what's your name?my name is Jare"
# str_english = str_english.split(" ")
str_english = str_english.replace(",","").replace("?","").replace("'","").replace(" ","")
str_english_dict = {}
for i in str_english:
    if i in str_english_dict.keys():
        str_english_dict[i] = str_english_dict[i] + 1
    else:
        str_english_dict[i] = 1

str = ""
for i,j in str_english_dict.items():
    if j == 1:
        str = str + i

print(f"不重复的字母有：{str}")